package com.bolt.admin.module.dict.entity;

import com.bolt.support.spring.jpa.entity.BaseUuidAuditingEntity;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;

/**
 * Auto Generate Javadoc
 *
 * @author 日期:2020-10-23 17:32:40
 *         数据字典详情
 **/
@Access(AccessType.FIELD)
@Entity
@Table(name = "sys_dict_detail")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class DictDetailEntity extends BaseUuidAuditingEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 字典id
     */
    @Column(name = "dict_id", length = 19)
    private String dictId;

    /**
     * 字典标签
     */
    @Column(name = "label", length = 255)
    private String label;

    /**
     * 字典值
     */
    @Column(name = "value", length = 255)
    private String value;

    /**
     * 排序
     */
    @Column(name = "dict_sort", length = 10)
    private Integer dictSort;


}